package org.dubnation.auth.domain.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
public class LoginDTO {
    @NotNull(message = "用户名或密码为空")
    private String username;
    @NotNull(message = "用户名或密码为空")
    private String password;
    /**
     * 区分是管理员登录还是用户登录 0-管理员 1-用户
     */
    @NotNull(message = "网络异常, 请联系管理员")
    private Integer type;
}
